import axios from 'axios'
import conf from './request'
const http = axios.create(conf)

export function _phoneVerify(phone){
  return http.get({
      url:'/cellphone/existence/check',
      params:{
          phone:phone
      }
  })
}

export function _login(phone,password){
  return http.get({
      url:'/login/cellphone',
      params:{
          phone:phone,
          password:password
      }
  })
}

export const _send= params =>{
  return http.get('/captcha/sent', {params})
}
export const _sendchake= params =>{
  return http.get('/captcha/verify', {params})
}
